package abstractfactory.pattern.demo;

/**
 * Created by 逸足天涯
 * Date: 2019/10/15.
 * Time: 16:10
 */
public class AbstractFactoryPatternEx {
    public static void main(String[] args) {
        System.out.println("***Abstract Factory Pattern Demo***");

        ActionMovieFactory actionsMovies = new ActionMovieFactory();
        ITollywoodMovie tAction = actionsMovies.getITollywoodMovie();
        IBollywoodMovie bAction = actionsMovies.getIBollWoodMovie();

        System.out.println("\nComdey movie are:");
        System.out.println(tAction.movieName());
        System.out.println(bAction.movieName());

        ComedyMovieFactory comedyMovies = new ComedyMovieFactory();
        ITollywoodMovie tcomedy = comedyMovies.getITollywoodMovie();
        IBollywoodMovie bcomedy = comedyMovies.getIBollWoodMovie();

        System.out.println("\nAction movie are:");
        System.out.println(tcomedy.movieName());
        System.out.println(bcomedy.movieName());


    }
}
